package com.ruoyi.business.service;

import com.ruoyi.business.app.bo.AppMyOrderBo;
import com.ruoyi.business.app.vo.AppMyOrderVo;
import com.ruoyi.business.domain.HcxMerchantOrder;
import com.ruoyi.business.vo.HcxMerchantOrderVo;
import com.ruoyi.business.bo.HcxMerchantOrderQueryBo;
import com.ruoyi.business.bo.HcxMerchantOrderAddBo;
import com.ruoyi.business.bo.HcxMerchantOrderEditBo;
import com.ruoyi.common.core.mybatisplus.core.IServicePlus;
import com.ruoyi.common.core.page.TableDataInfo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Collection;
import java.util.List;

/**
 * 商家订单Service接口
 *
 * @author wsdz
 * @date 2022-08-17
 */
public interface IHcxMerchantOrderService extends IServicePlus<HcxMerchantOrder> {
	/**
	 * 查询单个
	 * @return
	 */
	HcxMerchantOrderVo queryById(Long id);

	/**
	 * 查询列表
	 */
    TableDataInfo<HcxMerchantOrderVo> queryPageList(HcxMerchantOrderQueryBo bo);

	/**
	 * 查询列表
	 */
	TableDataInfo<AppMyOrderVo> queryAppPageList(AppMyOrderBo bo);

	/**
	 * 查询列表
	 */
	List<HcxMerchantOrderVo> queryList(HcxMerchantOrderQueryBo bo);

	/**
	 * 根据新增业务对象插入商家订单
	 * @param bo 商家订单新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(HcxMerchantOrderAddBo bo);

	/**
	 * 根据编辑业务对象修改商家订单
	 * @param bo 商家订单编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(HcxMerchantOrderEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    /**
     * 导入数据
     *
     * @param hcxMerchantOrderList 排污口水质数据
     * @return String
     */
	String importHcxMerchantOrder(List<HcxMerchantOrderVo> hcxMerchantOrderList);

	Boolean deleteMyorder(Long orderId);

	Boolean checkOrder(String orderNum);

	void wxPayNotify(HttpServletRequest request, HttpServletResponse response) throws Exception;

	String aliPayNotify(HttpServletRequest request, HttpServletResponse response) throws Exception;

	String unionPayNotify(HttpServletRequest request, HttpServletResponse response) throws Exception;
}
